package values.inventory
{
import flash.utils.Dictionary;

public class InventoryValueList
{
	public function InventoryValueList()
	{
	}
	
	private static var list:Dictionary; /* InventoryValue */
	
	public function get inventorys():Dictionary
	{
		return list;
	}
	
	[Data(type="mapping", 
		   mapping="inventory", 
		   ref="$@classRef",
		   way="one_to_more",
		   object="flash.utils.Dictionary",
           key="@type")]
	public function set inventorys(value:Dictionary):void
	{
		list = value;
	}
	
	public static function get inventoryList():Dictionary
	{
		return list;
	}
	
	public static function getByKey(key:String):InventoryValue
	{
		return list[key];
	}
}
}